import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Product {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ nullable: true })
  name?: string;

  @Column({ nullable: true })
  description?: string;

  @Column({ nullable: true, default: 0 })
  price?: number;

  @Column({ nullable: true })
  imageColor?: string;

  @Column({ nullable: true })
  power?: number;

  @Column({ nullable: true })
  temperature?: number;

  @Column({ nullable: true })
  scene?: string;

  @Column({ nullable: true })
  categoryId?: number;

  @Column({ nullable: true })
  rating?: string;

  @Column({ nullable: true, default: 0 })
  sales?: number;

  @Column({ nullable: true })
  titleLink?: string;

  @Column({ nullable: true })
  images?: string;

  @Column({ nullable: true })
  subtitle?: string;

  @Column({ default: true })
  isRecommended: boolean;
}
